#ifndef _T_DOUBLE_BUFFER_CU_H_
#define _T_DOUBLE_BUFFER_CU_H_

template <class T>
class T_DoubleBuffer_CU : public I_DoubleBuffer
{
public:
	T_DoubleBuffer_CU(void){}

	virtual ~T_DoubleBuffer_CU(void) 
	{
		Release();

		delete m_buffer[m_read]; m_buffer[m_read] = NULL;
		delete m_buffer[m_write]; m_buffer[m_write] = NULL;
	};

	virtual int SizeInBytes(void) 
	{ 
		return m_size * sizeof(T); 
	}
};

#endif